package pl.edu.agh.iosr.gamblingzone.model;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

/**
 * The Class Participant.
 */
@AttributeOverride(name="id",
		column=@Column(name="PARTICIPANT_ID"))
@Entity(name="PARTICIPANTS")
@Inheritance(strategy = InheritanceType.JOINED)
public class Participant extends EntityModel {
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 5379412070131908032L;

	/** The name. */
	@Column(name="PARTICIPAN_NAME", nullable=false)
	private String name;
	
	/** The description. */
	@Column(name="PARTICIPANT_DESCRIPTION", nullable=false)
	private String description;

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the description.
	 * 
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Sets the description.
	 * 
	 * @param description the new description
	 */
	public void setDescription(String description) {
		this.description = description;
	}
}
